package com.fc.v2.model.auto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import cn.hutool.core.util.StrUtil;

/**
 * 预约管理表 OrderlistExample
 * @author fuce_自动生成
 * @date 2021-05-06 10:29:37
 */
public class OrderlistExample {

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderlistExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }
        
				
        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(Integer value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(Integer value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }
        
				
        public Criteria andCustomerNameIsNull() {
            addCriterion("customer_name is null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNotNull() {
            addCriterion("customer_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameEqualTo(String value) {
            addCriterion("customer_name =", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotEqualTo(String value) {
            addCriterion("customer_name <>", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThan(String value) {
            addCriterion("customer_name >", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThanOrEqualTo(String value) {
            addCriterion("customer_name >=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThan(String value) {
            addCriterion("customer_name <", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThanOrEqualTo(String value) {
            addCriterion("customer_name <=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLike(String value) {
            addCriterion("customer_name like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotLike(String value) {
            addCriterion("customer_name not like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIn(List<String> values) {
            addCriterion("customer_name in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotIn(List<String> values) {
            addCriterion("customer_name not in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameBetween(String value1, String value2) {
            addCriterion("customer_name between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotBetween(String value1, String value2) {
            addCriterion("customer_name not between", value1, value2, "customerName");
            return (Criteria) this;
        }
        
				
        public Criteria andCustomerTimeIsNull() {
            addCriterion("customer_time is null");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeIsNotNull() {
            addCriterion("customer_time is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeEqualTo(String value) {
            addCriterion("customer_time =", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeNotEqualTo(String value) {
            addCriterion("customer_time <>", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeGreaterThan(String value) {
            addCriterion("customer_time >", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeGreaterThanOrEqualTo(String value) {
            addCriterion("customer_time >=", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeLessThan(String value) {
            addCriterion("customer_time <", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeLessThanOrEqualTo(String value) {
            addCriterion("customer_time <=", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeLike(String value) {
            addCriterion("customer_time like", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeNotLike(String value) {
            addCriterion("customer_time not like", value, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeIn(List<String> values) {
            addCriterion("customer_time in", values, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeNotIn(List<String> values) {
            addCriterion("customer_time not in", values, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeBetween(String value1, String value2) {
            addCriterion("customer_time between", value1, value2, "customerTime");
            return (Criteria) this;
        }

        public Criteria andCustomerTimeNotBetween(String value1, String value2) {
            addCriterion("customer_time not between", value1, value2, "customerTime");
            return (Criteria) this;
        }
        
				
        public Criteria andHNameIsNull() {
            addCriterion("h_name is null");
            return (Criteria) this;
        }

        public Criteria andHNameIsNotNull() {
            addCriterion("h_name is not null");
            return (Criteria) this;
        }

        public Criteria andHNameEqualTo(String value) {
            addCriterion("h_name =", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameNotEqualTo(String value) {
            addCriterion("h_name <>", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameGreaterThan(String value) {
            addCriterion("h_name >", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameGreaterThanOrEqualTo(String value) {
            addCriterion("h_name >=", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameLessThan(String value) {
            addCriterion("h_name <", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameLessThanOrEqualTo(String value) {
            addCriterion("h_name <=", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameLike(String value) {
            addCriterion("h_name like", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameNotLike(String value) {
            addCriterion("h_name not like", value, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameIn(List<String> values) {
            addCriterion("h_name in", values, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameNotIn(List<String> values) {
            addCriterion("h_name not in", values, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameBetween(String value1, String value2) {
            addCriterion("h_name between", value1, value2, "hName");
            return (Criteria) this;
        }

        public Criteria andHNameNotBetween(String value1, String value2) {
            addCriterion("h_name not between", value1, value2, "hName");
            return (Criteria) this;
        }
        
				
        public Criteria andCustomerTelIsNull() {
            addCriterion("customer_tel is null");
            return (Criteria) this;
        }

        public Criteria andCustomerTelIsNotNull() {
            addCriterion("customer_tel is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerTelEqualTo(String value) {
            addCriterion("customer_tel =", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotEqualTo(String value) {
            addCriterion("customer_tel <>", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelGreaterThan(String value) {
            addCriterion("customer_tel >", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelGreaterThanOrEqualTo(String value) {
            addCriterion("customer_tel >=", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLessThan(String value) {
            addCriterion("customer_tel <", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLessThanOrEqualTo(String value) {
            addCriterion("customer_tel <=", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLike(String value) {
            addCriterion("customer_tel like", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotLike(String value) {
            addCriterion("customer_tel not like", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelIn(List<String> values) {
            addCriterion("customer_tel in", values, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotIn(List<String> values) {
            addCriterion("customer_tel not in", values, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelBetween(String value1, String value2) {
            addCriterion("customer_tel between", value1, value2, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotBetween(String value1, String value2) {
            addCriterion("customer_tel not between", value1, value2, "customerTel");
            return (Criteria) this;
        }
        
				
        public Criteria andHAssIsNull() {
            addCriterion("h_ass is null");
            return (Criteria) this;
        }

        public Criteria andHAssIsNotNull() {
            addCriterion("h_ass is not null");
            return (Criteria) this;
        }

        public Criteria andHAssEqualTo(String value) {
            addCriterion("h_ass =", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssNotEqualTo(String value) {
            addCriterion("h_ass <>", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssGreaterThan(String value) {
            addCriterion("h_ass >", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssGreaterThanOrEqualTo(String value) {
            addCriterion("h_ass >=", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssLessThan(String value) {
            addCriterion("h_ass <", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssLessThanOrEqualTo(String value) {
            addCriterion("h_ass <=", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssLike(String value) {
            addCriterion("h_ass like", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssNotLike(String value) {
            addCriterion("h_ass not like", value, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssIn(List<String> values) {
            addCriterion("h_ass in", values, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssNotIn(List<String> values) {
            addCriterion("h_ass not in", values, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssBetween(String value1, String value2) {
            addCriterion("h_ass between", value1, value2, "hAss");
            return (Criteria) this;
        }

        public Criteria andHAssNotBetween(String value1, String value2) {
            addCriterion("h_ass not between", value1, value2, "hAss");
            return (Criteria) this;
        }
        
				
        public Criteria andETimeIsNull() {
            addCriterion("e_time is null");
            return (Criteria) this;
        }

        public Criteria andETimeIsNotNull() {
            addCriterion("e_time is not null");
            return (Criteria) this;
        }

        public Criteria andETimeEqualTo(String value) {
            addCriterion("e_time =", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeNotEqualTo(String value) {
            addCriterion("e_time <>", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeGreaterThan(String value) {
            addCriterion("e_time >", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeGreaterThanOrEqualTo(String value) {
            addCriterion("e_time >=", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeLessThan(String value) {
            addCriterion("e_time <", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeLessThanOrEqualTo(String value) {
            addCriterion("e_time <=", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeLike(String value) {
            addCriterion("e_time like", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeNotLike(String value) {
            addCriterion("e_time not like", value, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeIn(List<String> values) {
            addCriterion("e_time in", values, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeNotIn(List<String> values) {
            addCriterion("e_time not in", values, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeBetween(String value1, String value2) {
            addCriterion("e_time between", value1, value2, "eTime");
            return (Criteria) this;
        }

        public Criteria andETimeNotBetween(String value1, String value2) {
            addCriterion("e_time not between", value1, value2, "eTime");
            return (Criteria) this;
        }
        
				
        public Criteria andOProjIsNull() {
            addCriterion("o_proj is null");
            return (Criteria) this;
        }

        public Criteria andOProjIsNotNull() {
            addCriterion("o_proj is not null");
            return (Criteria) this;
        }

        public Criteria andOProjEqualTo(String value) {
            addCriterion("o_proj =", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjNotEqualTo(String value) {
            addCriterion("o_proj <>", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjGreaterThan(String value) {
            addCriterion("o_proj >", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjGreaterThanOrEqualTo(String value) {
            addCriterion("o_proj >=", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjLessThan(String value) {
            addCriterion("o_proj <", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjLessThanOrEqualTo(String value) {
            addCriterion("o_proj <=", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjLike(String value) {
            addCriterion("o_proj like", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjNotLike(String value) {
            addCriterion("o_proj not like", value, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjIn(List<String> values) {
            addCriterion("o_proj in", values, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjNotIn(List<String> values) {
            addCriterion("o_proj not in", values, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjBetween(String value1, String value2) {
            addCriterion("o_proj between", value1, value2, "oProj");
            return (Criteria) this;
        }

        public Criteria andOProjNotBetween(String value1, String value2) {
            addCriterion("o_proj not between", value1, value2, "oProj");
            return (Criteria) this;
        }
        
				
        public Criteria andRStateIsNull() {
            addCriterion("r_state is null");
            return (Criteria) this;
        }

        public Criteria andRStateIsNotNull() {
            addCriterion("r_state is not null");
            return (Criteria) this;
        }

        public Criteria andRStateEqualTo(String value) {
            addCriterion("r_state =", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateNotEqualTo(String value) {
            addCriterion("r_state <>", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateGreaterThan(String value) {
            addCriterion("r_state >", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateGreaterThanOrEqualTo(String value) {
            addCriterion("r_state >=", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateLessThan(String value) {
            addCriterion("r_state <", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateLessThanOrEqualTo(String value) {
            addCriterion("r_state <=", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateLike(String value) {
            addCriterion("r_state like", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateNotLike(String value) {
            addCriterion("r_state not like", value, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateIn(List<String> values) {
            addCriterion("r_state in", values, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateNotIn(List<String> values) {
            addCriterion("r_state not in", values, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateBetween(String value1, String value2) {
            addCriterion("r_state between", value1, value2, "rState");
            return (Criteria) this;
        }

        public Criteria andRStateNotBetween(String value1, String value2) {
            addCriterion("r_state not between", value1, value2, "rState");
            return (Criteria) this;
        }
        
			
		 public Criteria andLikeQuery(Orderlist record) {
		 	List<String> list= new ArrayList<String>();
		 	List<String> list2= new ArrayList<String>();
        	StringBuffer buffer=new StringBuffer();
			if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
    			 list.add("ifnull(id,'')");
    		}
			if(record.getCustomerName()!=null&&StrUtil.isNotEmpty(record.getCustomerName().toString())) {
    			 list.add("ifnull(customer_name,'')");
    		}
			if(record.getCustomerTime()!=null&&StrUtil.isNotEmpty(record.getCustomerTime().toString())) {
    			 list.add("ifnull(customer_time,'')");
    		}
			if(record.getHName()!=null&&StrUtil.isNotEmpty(record.getHName().toString())) {
    			 list.add("ifnull(h_name,'')");
    		}
			if(record.getCustomerTel()!=null&&StrUtil.isNotEmpty(record.getCustomerTel().toString())) {
    			 list.add("ifnull(customer_tel,'')");
    		}
			if(record.getHAss()!=null&&StrUtil.isNotEmpty(record.getHAss().toString())) {
    			 list.add("ifnull(h_ass,'')");
    		}
			if(record.getETime()!=null&&StrUtil.isNotEmpty(record.getETime().toString())) {
    			 list.add("ifnull(e_time,'')");
    		}
			if(record.getOProj()!=null&&StrUtil.isNotEmpty(record.getOProj().toString())) {
    			 list.add("ifnull(o_proj,'')");
    		}
			if(record.getRState()!=null&&StrUtil.isNotEmpty(record.getRState().toString())) {
    			 list.add("ifnull(r_state,'')");
    		}
			if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
    			list2.add("'%"+record.getId()+"%'");
    		}
			if(record.getCustomerName()!=null&&StrUtil.isNotEmpty(record.getCustomerName().toString())) {
    			list2.add("'%"+record.getCustomerName()+"%'");
    		}
			if(record.getCustomerTime()!=null&&StrUtil.isNotEmpty(record.getCustomerTime().toString())) {
    			list2.add("'%"+record.getCustomerTime()+"%'");
    		}
			if(record.getHName()!=null&&StrUtil.isNotEmpty(record.getHName().toString())) {
    			list2.add("'%"+record.getHName()+"%'");
    		}
			if(record.getCustomerTel()!=null&&StrUtil.isNotEmpty(record.getCustomerTel().toString())) {
    			list2.add("'%"+record.getCustomerTel()+"%'");
    		}
			if(record.getHAss()!=null&&StrUtil.isNotEmpty(record.getHAss().toString())) {
    			list2.add("'%"+record.getHAss()+"%'");
    		}
			if(record.getETime()!=null&&StrUtil.isNotEmpty(record.getETime().toString())) {
    			list2.add("'%"+record.getETime()+"%'");
    		}
			if(record.getOProj()!=null&&StrUtil.isNotEmpty(record.getOProj().toString())) {
    			list2.add("'%"+record.getOProj()+"%'");
    		}
			if(record.getRState()!=null&&StrUtil.isNotEmpty(record.getRState().toString())) {
    			list2.add("'%"+record.getRState()+"%'");
    		}
        	buffer.append(" CONCAT(");
	        buffer.append(StrUtil.join(",",list));
        	buffer.append(")");
        	buffer.append(" like CONCAT(");
        	buffer.append(StrUtil.join(",",list2));
        	buffer.append(")");
        	if(!" CONCAT() like CONCAT()".equals(buffer.toString())) {
        		addCriterion(buffer.toString());
        	}
        	return (Criteria) this;
        }
        
        public Criteria andLikeQuery2(String searchText) {
		 	List<String> list= new ArrayList<String>();
        	StringBuffer buffer=new StringBuffer();
    		list.add("ifnull(id,'')");
    		list.add("ifnull(customer_name,'')");
    		list.add("ifnull(customer_time,'')");
    		list.add("ifnull(h_name,'')");
    		list.add("ifnull(customer_tel,'')");
    		list.add("ifnull(h_ass,'')");
    		list.add("ifnull(e_time,'')");
    		list.add("ifnull(o_proj,'')");
    		list.add("ifnull(r_state,'')");
        	buffer.append(" CONCAT(");
	        buffer.append(StrUtil.join(",",list));
        	buffer.append(")");
        	buffer.append("like '%");
        	buffer.append(searchText);
        	buffer.append("%'");
        	addCriterion(buffer.toString());
        	return (Criteria) this;
        }
        
}
	
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}